@echo off
set CURRENT_DIR=%~dp0
set MSYS2=C:\msys64

@REM 设置 命令行 环境
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0
set PATH=%MSYS2%\mingw64\bin;%MSYS2%\usr\bin;%MSYS2%\mingw32\bin;%PATH%
@REM 设置 openocd 调试器 路径
set PATH=%CURRENT_DIR%\toolchain\OpenOCD-20231002-0.12.0\bin;%PATH%
@REM 设置 编译器 路径
set PATH=%CURRENT_DIR%\toolchain\arm-none-eabi\bin;%PATH%
@REM 设置 shell.exe
set ConEmu=%CURRENT_DIR%\ConEmu\ConEmu64.exe

@REM :prepareEnv
@REM set MSYS=winsymlinks:nativestrict

start %ConEmu% -title console ^
	-runlist -new_console:d:"%CURRENT_DIR%\build":t:build ^
	^|^|^| -new_console:d:"%CURRENT_DIR%":t:tools ^




